import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取情景名称列表
  getSceneNameList: (query) => api.get(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureScene/findAll`, query),
  //获取前一交易日
  getTradingDate: (query) => api.get(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureScene/previousTradingDay`, query),
  //获取table
  getTableData: (query) => api.post(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureDetail/findAll`, query),
  //新增情景设置
  addScene: (query) => api.post(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureScene/add`, query),
  //编辑情景设置
  editScene: (query) => api.post(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureScene/edit`, query),
  //删除情景设置
  deleteScene: (query) => api.get(`${config.interfaces.type5}portfolio-server/otcOptionRiskPressureScene/delete`, query),
};
